Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Content Exclusion for Copilot Hover #13143

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

spebl
Copy link
Contributor

@spebl spebl commented Jan 13, 2025

Get the files used for the context generation and bail before calling the LM if they're excluded.

@spebl spebl requested a review from a team as a code owner January 13, 2025 21:41
@spebl spebl added the Feature: Copilot Hover GitHub Copilot hover "Generate Copilot summary" feature label Jan 13, 2025
Copy link
Contributor

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the feature be enabled now? I thought this was the only blocking issue?

@spebl
Copy link
Contributor Author

spebl commented Jan 13, 2025

Should the feature be enabled now? I thought this was the only blocking issue?

We're still waiting for final sign-off before rolling it out. @benmcmorran has been tracking the privacy approval which is the last step.

@benmcmorran
Copy link
Member

@sean-mcmanus Not sure exactly when you were planning to do the 1.23 official release, but assuming we get the approval from the VS Code team to use the proposed API soon, is it feasible to ensure this PR makes it into the release? That will put us in a position to enable for the GA audience once all sign-offs are complete.

@benmcmorran
Copy link
Member

Discussed offline with @Colengms and it sounds like that timeline may not be feasible. It's fine to hold this for the next insiders release instead.

sean-mcmanus

This comment was marked as resolved.

@spebl
Copy link
Contributor Author

spebl commented Jan 15, 2025

Did the SSH build fail from these changes or is that some unrelated issue?

These changes, about to push an update.

sean-mcmanus
sean-mcmanus previously approved these changes Jan 15, 2025
}
} catch (err) {
if (err instanceof Error) {
await reportCopilotFailure(copilotHoverProvider, hoverDocument, hoverPosition, err.message);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this err.message contain PII, such as the user name and paths?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call that logging any generic error could have that issue. Perhaps something like "Copilot Hover Error: " + err.name? Should be safe from PII but it would be good to be able to track what type of errors are hit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I used err.name in my PR at #13158 .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure how to determine if vscode.LanguageModelError should be handled (which has code) versus Error (which only has name).

Copy link
Contributor

@sean-mcmanus sean-mcmanus Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The telemetry already is sent via telemetry.logLanguageServerEvent("CopilotHoverError", { "ErrorMessage": so adding "Copilot Hover Error: " doesn't seem to add any info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Copilot Hover GitHub Copilot hover "Generate Copilot summary" feature
Projects
Status: Pull Request
Development

Successfully merging this pull request may close these issues.

3 participants